/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.coreprincipals.polymorphism.polymorphism.impl;

import za.ac.cput.coreprincipals.polymorphism.polymorphism.Person;

/**
 *
 * @author Bongie
 */
public class EmployeeImpl extends Person{
    private int employeeNumber;
    private int hoursWorked;
    private double salary;
    
    public EmployeeImpl(String name, String surname, int age, int id, int empNmber, int hoursWorked, double salary){
        super(name, surname, age, id);
        this.employeeNumber = empNmber;
        this.hoursWorked = hoursWorked;
        this.salary =salary;
    }
    
    public int getEmployeeNumber() {
        return employeeNumber;
    }
    
    public void setEmployeeNumber(int employeeNumber) {
        this.employeeNumber = employeeNumber;
    }

    public int getHoursWorked() {
        return hoursWorked;
    }
    
    public void setHoursWorked(int hoursWorked) {
        this.hoursWorked = hoursWorked;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
    
    @Override
    public String message(){
        return String.format("Name: %s\nSurname: %s\nAge: %d\nID: %d\nNumber: %d\nHours Worked: %d\nSalary: %.2f", super.getName(), super.getSurname(), super.getAge(), super.getId(), this.employeeNumber, this.hoursWorked, this.salary);
    }
}
